package ExamLab;

public class ClassA {
	static class B extends ClassA {
		public void capture() {
			System.out.print("Cap:A.B");
		}
	}

	static class C extends B {
		public void capture() {
			System.out.print("Cap:A.C");
		}
	}

	public void capture() {
		System.out.print("Cap:A");
	}

	public static void main(String args[]) {
		ClassA ob = new C();
		ob.capture();
	}
}